<?php

include './common/functions.php';
include_once './common/Db.class.php';

$mid = $_GET['mid'];

$data = $_POST;

$db = new Db('msg');

$db->where(['mid'=>$mid]);

$db->update($data);

header("Location:./index.php");